<?php
/*
	本插件：$this->model('model')->方法名();
	其他地方调用：model('jy_weishopke/model')->方法名();
*/
namespace jy_weishopke;
defined('BY_JYA') or exit('error');
class model extends \plugin{
	//创建订单
	public function createorder($params){
		$new_order=array(
			'mid'=>$params['mid'],
			'price'=>$goods['price'],
			'goodsprice'=>$goods['price'],
			'goods'=>array($goods),
			'addressid'=>$addressid,
			'sendtype'=>1,
			'type'=>1,
			'createtime'=>$createtime,
		);
		pdo_insert('jy_weishop_goods',$good);
		$orderid=pdo_insertid();
		return $orderid;
	}
}
?>